package com.leafrest.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 
 * 自定义错误提示
 * 
 * @author lihuan
 *
 */
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface CustomError {

	/**
	 * 错误代码
	 */
	int code() default 3;

	/**
	 * 错误提示
	 */
	String msg() default "自定义错误";

}
